package com.chey.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;


import java.util.Collection;

public class UserSecurity extends org.springframework.security.core.userdetails.User {
    @Getter
    @Setter
    private User user;

    public UserSecurity(User user, Collection<GrantedAuthority> authorities){
        super(user.getUsername(),user.getPassword(),authorities);
        this.user=user;
    }

}
